/**
 * 
 */
package org.mhz.ootw.tree;

/**
 * @author Mahan
 *
 * Attributes
 */
public class Attributes
{
    private String mId;
    private String mContent;
    private String mParent;
        
    /**
     * Default constructor
     */
    public Attributes()
    {
        super();
    }

    /**
     * @param aId - The id
     * @param aContent - The content
     * @param aParent - The parent
     */
    public Attributes(final String aId, final String aContent, final String aParent)
    {
        super();
        mId = aId;
        mContent = aContent;
        mParent = aParent;
    }

    /**
     * @return Returns the id.
     */
    public String getId()
    {
        return mId;
    }
    
    /**
     * @param aId The id to set.
     */
    public void setId(final String aId)
    {
        mId = aId;
    }

    /**
     * @return Returns the content.
     */
    public String getContent()
    {
        return mContent;
    }

    /**
     * @param aContent The content to set.
     */
    public void setContent(final String aContent)
    {
        mContent = aContent;
    }

    /**
     * @return Returns the parent.
     */
    public String getParent()
    {
        return mParent;
    }

    /**
     * @param aParent The parent to set.
     */
    public void setParent(final String aParent)
    {
        mParent = aParent;
    }

    /**
     * @return The object as a json string
     */
    public String jsonString()
    {
        return "{ \"id\":\"" + mId 
                  + "\", \"content\":\"" + mContent
                  + "\", \"parent\":\"" + mParent + "\"}";
    }

    /* (non-Javadoc)
     * @see java.lang.Object#toString()
     */
    @Override
    public String toString()
    {
        return "Attributes [mId=" + mId 
                            + ", mContent=" + mContent
                            + ", mParent=" + mParent + "]";
    }
}
